<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<form action="">
    用户名:<input id="pname" name="pname"><br>
    生日:<input id="birth" type="date" name="birth" class="Wdate" onclick="WdatePicker()"><br>
    角色:
        <th:block th:each="role : ${roles}">
            <input name="roleIds"  type="checkbox" th:value="${role.roleId}">[[${role.roleName}]]
        </th:block>

</form>
</body>
</html>